package cn.e4j.modular.api.service;


import cn.e4j.core.dto.impl.Dto;
import cn.e4j.modular.api.mapper.BusinessMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class BusinessService {

    @Autowired
    BusinessMapper businessMapper;

    @Transactional(readOnly = true)
    public List<Dto> getGoodsInfo(Dto indto){

        return businessMapper.getGoodsInfo(indto);
    }

    @Transactional(readOnly = true)
    public List<Dto> getJRBF(Dto inDto) {
        return businessMapper.getGWBA(inDto);
    }
}
